package models;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import play.db.jpa.Model;

@Entity
public class Vehicle extends Model{
	
	
	@ManyToOne
	private User user;
	
	private String plate;
	private String trademark;
	private String model;
	private String color;
	private String age;
	
	
	public Vehicle(User user, String plate, String trademark, String model,
			String color, String age) {
		super();
		this.user = user;
		this.plate = plate;
		this.trademark = trademark;
		this.model = model;
		this.color = color;
		this.age = age;
	}


	public User getUser() {
		return user;
	}


	public void setUser(User user) {
		this.user = user;
	}


	public String getPlate() {
		return plate;
	}


	public void setPlate(String plate) {
		this.plate = plate;
	}


	public String getTrademark() {
		return trademark;
	}


	public void setTrademark(String trademark) {
		this.trademark = trademark;
	}


	public String getModel() {
		return model;
	}


	public void setModel(String model) {
		this.model = model;
	}


	public String getColor() {
		return color;
	}


	public void setColor(String color) {
		this.color = color;
	}


	public String getAge() {
		return age;
	}


	public void setAge(String age) {
		this.age = age;
	}
	
}
